package com.bwie.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 
 * @TableName tb_goods
 */
@TableName(value ="tb_goods")
@Data
public class TbGoods implements Serializable {
    /**
     * 商品id
     */
    @TableId(type = IdType.AUTO)
    private Integer goodsId;
    private Integer goodsNo;
    private String goodsVideo;

    /**
     * 商品名称
     */
    private String goodsName;


    /**
     * 商品图片
     */
    private String goodsPicture;

    /**
     * 活动id
     */
    private Integer activityId;

    /**
     * 活动名称
     */
    private String activityName;

    /**
     * 商品价格
     */
    private BigDecimal goodsPrice;

    /**
     * 总库存
     */
    private Integer goodsNum;

    /**
     * 商品状态
     */
    private Integer goodsStatus;

    /**
     * 一级分类
     */
    private Integer sortId1;

    /**
     * 二级分类
     */
    private Integer sortId2;

    /**
     * 创建时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    /**
     * 修改时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    /**
     * 商品详情
     */
    private String goodsDetails;
    @TableField(exist = false)
    private Integer right;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}